using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
namespace Bussiness.Entity
{
                

     public class PT_AccountEntity:AF_ORM.CORE.BaseEntity
    {
         public PT_AccountEntity()
         {
             tableName = "PT_Account";


			 fieldInfos.Add(new FieldInfo("PT_Account","Address","Address","string",1000,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Account","CreatedBy","CreatedBy","string",50,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Account","CreatedDate","CreatedDate","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Account","DEALER_CODE","DEALER_CODE","string",20,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Account","DisplayName","DisplayName","string",100,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Account","DOB","DOB","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Account","IsActive","IsActive","bool",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Account","IsDeleted","IsDeleted","bool",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Account","IsSystem","IsSystem","bool",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Account","Password","Password","string",100,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Account","RoleId","RoleId","int",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Account","UpdatedBy","UpdatedBy","string",50,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Account","UpdatedDate","UpdatedDate","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Account","UserCode","UserCode","string",50,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Account","UserID","UserID","int",0,true,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_Account","UserName","UserName","string",1024,false,true,true,false,"","",""));
         }
       //properties
                    
		 protected string m_Address;
		 protected string m_CreatedBy;
		 protected DateTime m_CreatedDate;
		 protected string m_DEALER_CODE;
		 protected string m_DisplayName;
		 protected DateTime m_DOB;
		 protected bool m_IsActive;
		 protected bool m_IsDeleted;
		 protected bool m_IsSystem;
		 protected string m_Password;
		 protected int m_RoleId;
		 protected string m_UpdatedBy;
		 protected DateTime m_UpdatedDate;
		 protected string m_UserCode;
		 protected int m_UserID;
		 protected string m_UserName;

		 public string Address

          { 
                get { 
                    return m_Address;}

                set{m_Address=value;

                    GetField("Address").Set();
                    GetField("Address").IsNull=(value == null);           
                    }
          }
		 public string CreatedBy

          { 
                get { 
                    return m_CreatedBy;}

                set{m_CreatedBy=value;

                    GetField("CreatedBy").Set();
                    GetField("CreatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime CreatedDate

          { 
                get { 
                    return m_CreatedDate;}

                set{m_CreatedDate=value;

                    GetField("CreatedDate").Set();
                    GetField("CreatedDate").IsNull=(value == null);           
                    }
          }
		 public string DEALER_CODE

          { 
                get { 
                    return m_DEALER_CODE;}

                set{m_DEALER_CODE=value;

                    GetField("DEALER_CODE").Set();
                    GetField("DEALER_CODE").IsNull=(value == null);           
                    }
          }
		 public string DisplayName

          { 
                get { 
                    return m_DisplayName;}

                set{m_DisplayName=value;

                    GetField("DisplayName").Set();
                    GetField("DisplayName").IsNull=(value == null);           
                    }
          }
		 public DateTime DOB

          { 
                get { 
                    return m_DOB;}

                set{m_DOB=value;

                    GetField("DOB").Set();
                    GetField("DOB").IsNull=(value == null);           
                    }
          }
		 public bool IsActive

          { 
                get { 
                    return m_IsActive;}

                set{m_IsActive=value;

                    GetField("IsActive").Set();
                    GetField("IsActive").IsNull=(value == null);           
                    }
          }
		 public bool IsDeleted

          { 
                get { 
                    return m_IsDeleted;}

                set{m_IsDeleted=value;

                    GetField("IsDeleted").Set();
                    GetField("IsDeleted").IsNull=(value == null);           
                    }
          }
		 public bool IsSystem

          { 
                get { 
                    return m_IsSystem;}

                set{m_IsSystem=value;

                    GetField("IsSystem").Set();
                    GetField("IsSystem").IsNull=(value == null);           
                    }
          }
		 public string Password

          { 
                get { 
                    return m_Password;}

                set{m_Password=value;

                    GetField("Password").Set();
                    GetField("Password").IsNull=(value == null);           
                    }
          }
		 public int RoleId

          { 
                get { 
                    return m_RoleId;}

                set{m_RoleId=value;

                    GetField("RoleId").Set();
                    GetField("RoleId").IsNull=(value == null);           
                    }
          }
		 public string UpdatedBy

          { 
                get { 
                    return m_UpdatedBy;}

                set{m_UpdatedBy=value;

                    GetField("UpdatedBy").Set();
                    GetField("UpdatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime UpdatedDate

          { 
                get { 
                    return m_UpdatedDate;}

                set{m_UpdatedDate=value;

                    GetField("UpdatedDate").Set();
                    GetField("UpdatedDate").IsNull=(value == null);           
                    }
          }
		 public string UserCode

          { 
                get { 
                    return m_UserCode;}

                set{m_UserCode=value;

                    GetField("UserCode").Set();
                    GetField("UserCode").IsNull=(value == null);           
                    }
          }
		 public int UserID

          { 
                get { 
                    return m_UserID;}

                set{m_UserID=value;

                    GetField("UserID").Set();
                    GetField("UserID").IsNull=(value == null);           
                    }
          }
		 public string UserName

          { 
                get { 
                    return m_UserName;}

                set{m_UserName=value;

                    GetField("UserName").Set();
                    GetField("UserName").IsNull=(value == null);           
                    }
          }

}
}
